package com.csdj.t309.service;

import com.csdj.t309.entity.Cityarea;
import com.csdj.t309.entity.CityareaExample;
import com.csdj.t309.entity.Driverschool;
import com.csdj.t309.entity.DriverschoolExample;
import com.csdj.t309.mapper.CityareaMapper;
import com.csdj.t309.mapper.DriverschoolMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DriverschoolServiceImpl implements DriverschoolService {
    @Autowired
    private DriverschoolMapper devUserMapper;

    @Override
    public long countByExample(DriverschoolExample example) {
        return devUserMapper.countByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return devUserMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Driverschool record) {
        return devUserMapper.insert(record);
    }

    @Override
    public int insertSelective(Driverschool record) {
        return devUserMapper.insertSelective(record);
    }

    @Override
    public List<Driverschool> selectByExample(DriverschoolExample example) {
        return devUserMapper.selectByExample(example);
    }

    @Override
    public Driverschool selectByPrimaryKey(Integer id) {
        return devUserMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Driverschool record) {
        return devUserMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Driverschool record) {
        return devUserMapper.updateByPrimaryKey(record);
    }
}